<?php

include '../Classes/allocationHandler.php';
include '../Classes/db.php';

$x=new DbConnect();
$con=$x->getConnection();

$id=$_GET['id'];
$subgr=$_GET['subgr'];
$start=$_GET['start'];
$end=$_GET['end'];
//$empno=$_GET['empno'];
$class=$_GET['class'];
$days=$_GET['days'];

$allo=new allocationHandler();//create a new object
$allo->setConnect($con);
$allocation=$allo->alloUpdate($id,$subgr,$days,$start,$end,$class);
echo $allocation;

?>